<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../../common/jsp/taglibs.jsp"%>
<!-- 
    Copyright (C)  2011  chen wei hua.
    Permission is granted to copy, distribute and/or modify this document
    under the terms of the GNU Free Documentation License, Version 2.0
    or any later version published by the Free Software Foundation;
    with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
    A copy of the license is included in the section entitled "GNU Free Documentation License".
 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>检验-退料单检验</title>
<%@ include file="../../common/jsp/config.jsp"%>
<%@ include file="../../common/jsp/pageable.jsp"%>
<script type="text/javascript" src="common/js/calendar/WdatePicker.js" ></script>
<script type="text/javascript">
    function pageselectCallback(page_index, jq){
    	var oldPageIndex = $("#pageInfo_pageIndex").val();
        if (page_index != oldPageIndex) {
        	$("#pageInfo_pageIndex").val(page_index);
        	$("#backMaterialRequisiteInStoreList").submit();
        }
        return false;
    }

     function querySubmit() {
    	 $("#pageInfo_pageIndex").val("0");
    	 $("#backMaterialRequisiteInStoreList").submit();
    	 return false;
     }

</script>
</head>

<body>
    <div class="subnav" align="left">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="100%" align="left" height="31">&nbsp;<img src="common/images/title-pk.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt1">检验</span>
			&nbsp;<img src="common/images/leftico2.gif" border="0"  align="absmiddle"/>&nbsp;<span class="subnavtxt2">退料单检验</span></td>
		  </tr>
		</table>
      </div>
   <div class="divborder">
      <s:form action="backMaterialRequisiteInStoreList">
      <s:hidden id="pageInfo_pageIndex" name="pageInfo.pageIndex" />
        <table width="100%" border="0" cellspacing="1" cellpadding="3">
          <tr>
            <td width="10%" align="right">日期</td>
            <td width="25%">
				<s:textfield name="condition.beginDate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" size="10" cssClass="{required:true}"/>-
				<s:textfield name="condition.endDate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" size="10" cssClass="{required:true}"/>
			</td>
            <td width="10%" align="right">名称</td>
            <td width="10%"><s:textfield name="condition.materialsName" size="20" /></td>
            <td align="right"><input name="button" type="button" class="input1" value="查 询" onclick="querySubmit()"/></td>
          </tr>
        </table>
      </s:form>
  </div >        
  <div class="ksglxx2">
        <table width="100%" cellpadding="0" cellspacing="1" border="0" class="ksglxx2a">
          <tr class="ksglxx2bg">
             <th width="10%" align="left">单号</th>
             <th width="20%" align="left">部门</th>
             <th width="20%" align="left">单据类型</th>
             <th width="10%" align="left">日期</th>
             <th width="10%" align="left">生产批号</th>
             <th width="10%" align="left">经办人</th>
             <th width="10%" align="left">状态</th>
             <th>&nbsp;</th>
          </tr>
		<s:iterator value="formList" id="mrform" status="st">
           <s:if test="#st.Odd">
             <tr class="odd">
           </s:if>
           <s:else>
             <tr class="even">
           </s:else>
              <td><span class="detail">
              <a href='showBackMaterialRequisiteFormInfo.action?formId=<s:property value="#mrform.id" />'><s:property value="#mrform.id" /></a>
              </span></td>
              <td><s:property value="#mrform.deptName" /></td>
              <td><s:property value="#mrform.typeName" /></td>
              <td><s:date name="#mrform.createDate" format="yyyy-MM-dd"/></td>
              <td><s:property value="#mrform.planNo" /></td>
              <td><s:property value="#mrform.person" /></td>
              <td><s:property value="#mrform.statusName" /></td>
              <td align="center">
               	<span class="skin-blue">
               	  <a class="small-btn" href='backMaterialRequisiteCheck.action?formId=<s:property value="#mrform.id" />'>检验</a>
               	</span>
              </td>
             </tr>
		</s:iterator>
      </table>
		<!--分页开始-->
		<div style="float:right;">
			<br style="clear:both;" /> 
			<div id="Pagination"></div> 
		</div>
		<!--分页结束-->
  </div>
</body>
</html>
